package com.sl.au.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * 价格单设备明细表
 */

@Entity
@Table(name = "sl_crm_quoteDevice")
public class QuoteDevice extends Root {
	/** 类型 */
	@Column(name = "nBillType")
	private Float nBillType;
   	/** 电机 */
	@Column(name = "cMotor")
   	private String cMotor;
   	/** 所带附件 */
	@Column(name = "cAttachment")
   	private String cAttachment;
   	/** 系统带泵 */
	@Column(name = "cSysPump")
   	private String cSysPump;
   	/** 泵类型 */
	@Column(name = "cPumpType")
   	private String cPumpType;
   	/** 泵数量 */
   	@Column(name = "nPumpNum")
   	private Float nPumpNum;
   	/** 泵总价 */
   	@Column(name = "nPumpTotalPrice")
   	private Float nPumpTotalPrice;
   	/** 交货日期 */
   	@Column(name = "dDeliveryDate")
   	private Date dDeliveryDate;
   	/** 特殊泵 */
	@Column(name = "nIsSpecial")
   	private Float nIsSpecial;
   	/** 结构形式 */
	@Column(name = "cStructure")
   	private String cStructure;
   	/** 出口压力 */
	@Column(name = "cOutletPressure")
   	private String cOutletPressure;
   	/** 位号 */
	@Column(name = "cBitNumber")
   	private String cBitNumber;
   	/** 使用单位 */
	@Column(name = "cUnit")
   	private String cUnit;
   	/** 备注 */
	@Column(name = "cMemo")
   	private String cMemo;
   	
	public Float getnBillType() {
		return nBillType;
	}

	public void setnBillType(Float nBillType) {
		this.nBillType = nBillType;
	}

	public String getcMotor() {
		return cMotor;
	}

	public void setcMotor(String cMotor) {
		this.cMotor = cMotor;
	}

	public String getcAttachment() {
		return cAttachment;
	}

	public void setcAttachment(String cAttachment) {
		this.cAttachment = cAttachment;
	}

	public String getcSysPump() {
		return cSysPump;
	}

	public void setcSysPump(String cSysPump) {
		this.cSysPump = cSysPump;
	}

	public String getcPumpType() {
		return cPumpType;
	}

	public void setcPumpType(String cPumpType) {
		this.cPumpType = cPumpType;
	}

	public Float getnPumpNum() {
		return nPumpNum;
	}

	public void setnPumpNum(Float nPumpNum) {
		this.nPumpNum = nPumpNum;
	}

	public Float getnPumpTotalPrice() {
		return nPumpTotalPrice;
	}

	public void setnPumpTotalPrice(Float nPumpTotalPrice) {
		this.nPumpTotalPrice = nPumpTotalPrice;
	}

	public Float getnIsSpecial() {
		return nIsSpecial;
	}

	public void setnIsSpecial(Float nIsSpecial) {
		this.nIsSpecial = nIsSpecial;
	}

	public String getcStructure() {
		return cStructure;
	}

	public void setcStructure(String cStructure) {
		this.cStructure = cStructure;
	}

	public String getcOutletPressure() {
		return cOutletPressure;
	}

	public void setcOutletPressure(String cOutletPressure) {
		this.cOutletPressure = cOutletPressure;
	}

	public String getcBitNumber() {
		return cBitNumber;
	}

	public void setcBitNumber(String cBitNumber) {
		this.cBitNumber = cBitNumber;
	}

	public String getcUnit() {
		return cUnit;
	}

	public void setcUnit(String cUnit) {
		this.cUnit = cUnit;
	}

	
	public Date getdDeliveryDate() {
		return dDeliveryDate;
	}

	public void setdDeliveryDate(Date dDeliveryDate) {
		this.dDeliveryDate = dDeliveryDate;
	}

	

	public String getcMemo() {
		return cMemo;
	}

	public void setcMemo(String cMemo) {
		this.cMemo = cMemo;
	}

	/** 关联价格单 */
	@OneToOne
	@JoinColumn(name = "quoteId")
	private Quote quote;
	@OneToOne
	@JoinColumn(name = "quoteForeignId")
	private QuoteForeign quoteForeign;
	/** 关联泵(主机)Id */
	@Column(name = "sLinkDeviceId")
	private String linkDeviceId;
	/** 所属合同ID(四类合同均可) */
	@Column(name = "sContractID")
	private String contractID;
	/** 所属合同类型 */
	@Column(name = "sContractType")
	private String contractType;
	/** 供方合同编号(关联项目合同后出现) */
	@Column(name = "sSupplierCode")
	private String supplierCode;
	/** 产品名称 */
	@Column(name = "sProductName")
	private String productName;
	/** 产品类型 */
	@Column(name = "sProductType")
	private String productType;
	/** 细分类型 */
	@Column(name = "sSubDivideType")
	private String subDivideType;
	/** 产品型号 */
	@Column(name = "sProductModel")
	private String productModel;
	/** 是否降库产品  0: 不是降库  1：是降库产品  2:被降库*/
	@Column(name = "sIsInventory")
	private String isInventory;
	/** 数量 */
	@Column(name = "nNumber")
	private int number;
	/** 单位 */
	@Column(name = "sUnit")
	private java.lang.String unit;

	/** 功率 */
	@Column(name = "sPower")
	private String power;
	/** 粘度 */
	@Column(name = "sViscosity")
	private String viscosity;
	/** 过流材质 */
	@Column(name = "sFlowMaterial")
	private String flowMaterial;
	/** 传输介质 */
	@Column(name = "sTransMedia")
	private String transMedia;
	/** 比重 */
	@Column(name = "sProportion")
	private String proportion;
	/** 有效气蚀余量 */
	@Column(name = "sEffectiveNPSHA")
	private String effectiveNPSHA;
	/** 流量 */
	@Column(name = "sFlux")
	private String flux;
	/** 温度 */
	@Column(name = "sTemperature")
	private String temperature;
	/** 必须气蚀余量 */
	@Column(name = "sMustMPSHA")
	private String mustMPSHA;
	/** 扬程 */
	@Column(name = "sPumpLift")
	private String pumpLift;
	/** 入口压力 */
	@Column(name = "sInPressure")
	private String inPressure;
	/** 报价 */
	@Column(name = "nUnitPrice")
	private Float unitPrice;
	/** 原价 */
	@Column(name = "nCostPrice")
	private Float costPrice;
	
	/** 设备类型 */
	@Column(name = "nIsPump")
	private boolean isPump;
	/** 降库状态  0：未降库*/
	@Column(name = "sInventoryState")
	private String inventoryState;
	/** 出厂日期 */
	@Column(name = "dLeaveFactoryDate")
	private java.util.Date leaveFactoryDate;
	/** 维护方案ID(针对泵) */
	@Column(name = "sMaintainSchemeID")
	private String maintainSchemeID;

	

	public Float getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(Float unitPrice) {
		this.unitPrice = unitPrice;
	}

	public Float getCostPrice() {
		return costPrice;
	}

	public void setCostPrice(Float costPrice) {
		this.costPrice = costPrice;
	}

	public void setPump(boolean isPump) {
		this.isPump = isPump;
	}

	public Quote getQuote() {
		return quote;
	}

	public void setQuote(Quote quote) {
		this.quote = quote;
	}

	public QuoteForeign getQuoteForeign() {
		return quoteForeign;
	}

	public void setQuoteForeign(QuoteForeign quoteForeign) {
		this.quoteForeign = quoteForeign;
	}

	public String getLinkDeviceId() {
		return linkDeviceId;
	}

	public void setLinkDeviceId(String linkDeviceId) {
		this.linkDeviceId = linkDeviceId;
	}

	public String getContractID() {
		return contractID;
	}

	public void setContractID(String contractID) {
		this.contractID = contractID;
	}

	public String getContractType() {
		return contractType;
	}

	public void setContractType(String contractType) {
		this.contractType = contractType;
	}

	public String getSupplierCode() {
		return supplierCode;
	}

	public void setSupplierCode(String supplierCode) {
		this.supplierCode = supplierCode;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductType() {
		return productType;
	}

	public void setProductType(String productType) {
		this.productType = productType;
	}

	public String getSubDivideType() {
		return subDivideType;
	}

	public void setSubDivideType(String subDivideType) {
		this.subDivideType = subDivideType;
	}

	public String getProductModel() {
		return productModel;
	}

	public void setProductModel(String productModel) {
		this.productModel = productModel;
	}

	public String getIsInventory() {
		return isInventory;
	}

	public void setIsInventory(String isInventory) {
		this.isInventory = isInventory;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public String getPower() {
		return power;
	}

	public void setPower(String power) {
		this.power = power;
	}

	public String getViscosity() {
		return viscosity;
	}

	public void setViscosity(String viscosity) {
		this.viscosity = viscosity;
	}

	public String getFlowMaterial() {
		return flowMaterial;
	}

	public void setFlowMaterial(String flowMaterial) {
		this.flowMaterial = flowMaterial;
	}

	public String getTransMedia() {
		return transMedia;
	}

	public void setTransMedia(String transMedia) {
		this.transMedia = transMedia;
	}

	public String getProportion() {
		return proportion;
	}

	public void setProportion(String proportion) {
		this.proportion = proportion;
	}

	public String getFlux() {
		return flux;
	}

	public void setFlux(String flux) {
		this.flux = flux;
	}

	public String getTemperature() {
		return temperature;
	}

	public void setTemperature(String temperature) {
		this.temperature = temperature;
	}

	public String getPumpLift() {
		return pumpLift;
	}

	public void setPumpLift(String pumpLift) {
		this.pumpLift = pumpLift;
	}

	public String getInPressure() {
		return inPressure;
	}

	public void setInPressure(String inPressure) {
		this.inPressure = inPressure;
	}

	public String getInventoryState() {
		return inventoryState;
	}

	public void setInventoryState(String inventoryState) {
		this.inventoryState = inventoryState;
	}

	public String getEffectiveNPSHA() {
		return effectiveNPSHA;
	}

	public void setEffectiveNPSHA(String effectiveNPSHA) {
		this.effectiveNPSHA = effectiveNPSHA;
	}

	public String getMustMPSHA() {
		return mustMPSHA;
	}

	public void setMustMPSHA(String mustMPSHA) {
		this.mustMPSHA = mustMPSHA;
	}

	public boolean getIsPump() {
		return isPump;
	}

	public void setIsPump(boolean isPump) {
		this.isPump = isPump;
	}

	public java.util.Date getLeaveFactoryDate() {
		return leaveFactoryDate;
	}

	public void setLeaveFactoryDate(java.util.Date leaveFactoryDate) {
		this.leaveFactoryDate = leaveFactoryDate;
	}

	public String getMaintainSchemeID() {
		return maintainSchemeID;
	}

	public void setMaintainSchemeID(String maintainSchemeID) {
		this.maintainSchemeID = maintainSchemeID;
	}
	public java.lang.String getUnit() {
		return unit;
	}

	public void setUnit(java.lang.String unit) {
		this.unit = unit;
	}

}
